<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="srcPath" value="${redis:getSysConfig('sysFileVisitRoot_back')}"/>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript" src="${basePath}/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="${basePath}/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="${basePath}/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    var editor;//初始化编辑器变量
    function initProductImgTextInfo(productInfoDetail){
        if(productInfoDetail!=null && productInfoDetail!=""){
        	editor.setContent(productInfoDetail.detailContent);
		}else{
            editor.setContent("");
		}
	}
</script>

<table  class="addOrEditTable table-bordered table" style="width:100%;">
	<tr>
		<td  class="toleft_td">
			<div class="form-group">
				<!--百度ueditor编辑器-->
				<textarea id="detailContent" name="detailContent" style="width:100%;height:200px;font-size:12px;"></textarea>
				<script type="text/javascript">
                    editor = UE.getEditor('detailContent');
                    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                    UE.Editor.prototype.getActionUrl = function(action) {
                        if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                            return '${basePath}/back/upload/imgUploadByUeditor.sjson?subSysFolderName=ueFile_product&imageInfoPath=image_ueditor';
                        }  else {
                            return this._bkGetActionUrl.call(this, action);
                        }
                    }
				</script>
			</div>
		</td>
	</tr>
</table>
